﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

namespace ServerSandboxie
{
    class ToolObject
    {
        protected bool isNewObjectAdded = false;

        public virtual void OnMouseDown(MouseEventArgs e)
        { }

        public virtual void OnMouseMove(MouseEventArgs e)
        { }
        public virtual void OnMouseUp(MouseEventArgs e)
        {
            CC.userCtrl.Capture = false;
            CC.userCtrl.Refresh();
            isNewObjectAdded = false;

        }
        //添加新的图形对象
        protected void AddNewObject(DrawObject w)
        {
            CC.graphicsList.Add(w);
            CC.userCtrl.Capture = true;
            CC.userCtrl.Refresh();
        }


    }
}
